package com.wwl.cms.utils.designModeTest.interpreter;

import java.util.HashMap;

/**
 * @author wwl
 * @version 1.0
 * @date 2021/9/26 20:34
 * @description:
 */
public class AddExpression extends SymbolExpression {
    public AddExpression(Expression left,Expression right){
        super(left,right);
    }

    @Override
    public int interpreter(HashMap<String, Integer> var) {
        return super.left.interpreter(var)+super.right.interpreter(var);
    }
}
